package eu.urbain.gdocslauncher.exe;

import java.net.MalformedURLException;
import java.net.URL;

import javax.swing.JOptionPane;

import eu.urbain.gdocslauncher.Common;

public class Spreadsheet {

	public static final String linkNew = "https://docs.google.com/spreadsheet";
	
	// https://docs.google.com/spreadsheet/ccc?key=0AiCV3NMe06MldDFOZmhvS01POWFpaWhXZ3FxX1ZXZEE#gid=0

	public static void main(String[] args) throws MalformedURLException {

		if (args != null && args.length != 0) {
			
			String s = args[0];
			
			JOptionPane.showMessageDialog(null,	s);
		}

		else {
			URL url = new URL(linkNew);
			Common.openWebpage(url);
		}

	}

}
